﻿using System.Windows.Controls;
using System.Windows.Input;

namespace WeighingRecord.Views
{
    /// <summary>
    /// WeightListView.xaml 的交互逻辑
    /// </summary>
    public partial class WeightListView : UserControl
    {
        public WeightListView()
        {
            InitializeComponent();
        }

        private void AutoCompleteBox_GotFocus(object sender, System.Windows.RoutedEventArgs e)
        {
            var combox = ((AutoCompleteBox)sender);
            if (string.IsNullOrEmpty((combox.Text)))
            {
                   (combox).IsDropDownOpen = true;
            }
        }
    }
}
